custom string pool in java